<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../../../css/common.css">
    <link rel="stylesheet" href="../../../css/main.css">
    <link rel="stylesheet" href="../../../css/jquery-ui.css">
    <link href="../../../css/bootstrap.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div style="margin: auto;padding-left: 10px;">
<?php
/**
 * Created by PhpStorm.
 * User: CJJ
 * Date: 2017/8/25
 * Time: 9:39
 */
header("Content-type:text/html;charset=utf-8");
require_once ('../class/ExcelToSql.class.php');
$File=$_FILES['file_stu'];
$Dir=explode('\\',dirname(__FILE__));$CDir=$Dir[0];for($i=1;$i<count($Dir)-1;$i++) $CDir.='/'.$Dir[$i];
$SavePath=$CDir.'/ExcelFile/';
$ToExcel=new ExcelToSql();
$FilePath=$ToExcel->SaveExcel($File,$SavePath);
//echo '正在导入数据库........<br/>';
@ob_flush();
flush();
echo $dataArray=$ToExcel->ExcelToArray($FilePath);

?>

    <br/><a class="ext_btn" onclick="javascript :history.go(-1);" ></span>返回</a>
</div>

</body>
<script type="text/javascript" src="../../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../../js/jquery-ui.js"></script>
<script type="text/javascript" src="../../../js/common.js"></script>
<script type="text/javascript" src="../../../js/config.js"></script>
</html>
